In this video you will learn how to create interactive candlestick stick and open high low close chats
and these chats are heavily used and technical analysis where technical analysts and traders try to
find patterns in historical price data and even if you haven't heard of that before.
The intuition is pretty simple.
So first of all we import pandas and cufflinks.
Then we import again our stocks.
Data set.
So here we have the open high low close prices for our six stocks and let us assume that we want to
f up my low close for our Apple stock.
Then we could uh for example swap the levels here in order to have the stock take us on the outer level
and then we can select only the Apple stock and to be safe.
The resulting data frame and the variable Apple and have a look.
So here we have the open high low and close prices and also the adjusted close prices and the volume
for the Apple stock.
And if you want to create a candlestick or a open high low close the chart then our data frame must
contain the columns open high low and close and this is the case here.
And let's assume that we are only interested in the period from May to 70 into September to 17.
So we are selecting that period here and then we are changing the plot method and then we pass the candle
to the kind parameter.
So let's have a look
and here we have a candlestick chart and it's called a candle stick chart because uh these uh things
look like candles actually.
So each candle stands for a one day period and uh for days where we have positive returns from the open
to the close price.
Then we have a green candles and a red candle stands for a day where we have actually losses from the
open to the close price.
And for example let's have a look at this candle here.
So here you can see the candle body here and uh this is the marked with the the open and uh the close
price.
And as we have a negative return on that day.
So the open prices here the beginning of the body and the closing price is uh here.
So this is the body of the candle and then we have also to candle wax which Mark actually uh the daily
high prices.
So the Societe daily high price.
So one hundred fifty eight point two six.
And here we have the daily low price hadnot fifty three point a three so this is a candle stick chart
and technical analyst.
Discover here patterns and the historical data and uh we can also create a open high low close um graph
which is pretty similar actually.
And we pass here open high low close
and also here we have for each day actually uh one bar and four days where we have positive returns
from the open to the close price.
We have a green bar and for a negative uh daily return we have a red bar and actually you can see here
at uh the left hand side a small dot and up and at the right hand side.
And uh these are actually the open and close prices.
So the left and thoughtless actually the open price and the dot on the right hand side to sexually the
close price.
And it's pretty hard to see here but there are two small dots and actually at the very top of each bar
here is actually the high price of the day.
And uh the the end of uh the bar here is uh the low price of the day.
So this is uh pretty similar to a candlestick chart and uh with this we are already finished here with
this video and I hope to see you also in the next one by.